package com.mcxx.modules.miniSalvation.order.service.read;

import com.mcxx.modules.miniSalvation.order.dao.read.OrderInspectionReadDao;
import com.mcxx.modules.miniSalvation.order.entity.OrderInspectionEntity;
import com.yinhai.ta404.core.transaction.annotation.TaTransactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@TaTransactional(readOnly = true)
public class OrderInspectionReadService {

    @Autowired
    private OrderInspectionReadDao orderInspectionReadDao;


    public List<OrderInspectionEntity> listAll() {
    	return orderInspectionReadDao.listAll();
    }



    public OrderInspectionEntity getByBatchOrderId(String batchOrderId) {
    	return orderInspectionReadDao.getByBatchOrderId(batchOrderId);
    }


    public int countByBatchId(String id) {
        return orderInspectionReadDao.countByBatchId(id);
    }
}
